'''
Created on Apr 16, 2012

@author: lavang
'''

# New User Types
def xpathNewUserTypes():
    return "//a[contains(text(),'New user type')]"

# txt Type name
def xpathTxtTypeName():
    return "//input[@name='name']"

# Cbb Basic User Type
def xpathCbbBasicUserType():
    return "//select[@id='basic_user_type']"

# Button Save
def xpathBtnSave():
    return "//input[@name='submit_type']"

# icon Delete
def xpathDelete(userTypeName):
    return "//a[contains(text(),'"+userTypeName+"')]/../../td/img[@title='Delete']"

##########################################################
# Elements of Student type
    # Content
def xpathCbbContent():
    return "//select[@name='core_access[content]']"
        
    # User
def xpathCbbUser():
    return "//select[@name='core_access[users]']"
        
    # Reports
def xpathCbbReport():
    return "//select[@name='core_access[statistics]']"
        
    # Personal messages
def xpathCbbPersonalMessage():
    return "//select[@name='core_access[personal_messages]']"

    # Control Panel
def xpathCbbControlPanel():
    return "//select[@name='core_access[control_panel]']"

    # Move block
def xpathCbbMoveBlock():
    return "//select[@name='core_access[move_block]']"
    
    # Dashboard
def xpathCbbDashBoard():
    return "//select[@name='core_access[dashboard]']"  

    # Calendar
def xpathCbbCalendar():
    return "//select[@name='core_access[calendar]']"

    # Surveys
def xpathCbbSurvey():
    return "//select[@name='core_access[surveys]']"

    # Announcements
def xpathCbbAnnouncement():
    return "//select[@name='core_access[news]']"

    # Forum
def xpathCbbForum():
    return "//select[@name='core_access[forum]']"

    # Set all to
def xpathCbbSetAllTo():
    return "//select[@id='set_options_selected']"

#######################################################
# Element of Professor type
    # User
    # Content
    # File
def xpathCbbFiles():
    return "//select[@name='core_access[files]']"
    
    # User status
def xpathCbbUserStatus():
    return "//select[@name='core_access[progress]']"
    # Report
    # Personal msg
    # Control panel
    # Dashboard
    # Move Block
    
    # Course option
    # Lession Option
def xpathCbbLessionOption():
    return "//select[@name='core_access[settings]']"
def xpathCbbCourseOption():
    return "//select[@name='core_access[course_settings]']"
    
    # Glossary
def xpathCbbGlossary():
    return "//select[@name='core_access[glossary]']"
    # Calendar
    # Survey
    # Announcement
    # Forum
################################################################
# Element of Administrator type
    #Lessons    
def xpathCbbLesson():
    return "//select[@name='core_access[lessons]']"
    
    #Users 
         
    #Configuration options:    
def xpathCbbConfigurationOption():
    return "//select[@name='core_access[configuration]']"
  
    #Themes:      
def xpathCbbThemes():
    return "//select[@name='core_access[themes]']"

    #Log out user:      
def xpathCbbLogOutUser():
    return "//select[@name='core_access[logout_user]']"

    #Public profile:      
def xpathCbbPublicProfile():
    return "//select[@name='core_access[user_profile]']"

    #User types:   
def xpathCbbUserType():
    return "//select[@name='core_access[user_types]']"   
    
    #Languages:      
def xpathCbbLanguage():
    return "//select[@name='core_access[languages]']"

    #Registration key:  
def xpathCbbRegistrationKey():
    return "//select[@name='core_access[version_key]']"   
 
    #Maintenance:      
def xpathCbbMaintenance():
    return "//select[@name='core_access[maintenance]']"

    #Backup/restore:      
def  xpathCbbBackupRestore():
    return "//select[@name='core_access[backup]']"

    #Modules:      
def xpathCbbModules():
    return "//select[@name='core_access[modules]']"
    #Reports:      
    #Archive:   
def xpathCbbArchive():
    return "//select[@name='core_access[archive]']"   
    #Personal messages:      
    #Notifications: 
def xpathCbbNotification():
    return "//select[@name='core_access[notifications]']"     
    #Control panel:      
    #Dashboard:      
    #Calendar:      
    #Announcements:      
    #Forum:    
    